<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Login</title>
<link href="<%=request.getContextPath()%>/resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="<%=request.getContextPath()%>/resources/css/login.css" rel="stylesheet">
<script src="<%=request.getContextPath()%>/resources/bootstrap/js/bootstrap.min.js"></script>
</head>
<body onload='document.f.j_username.focus();'>
	<div class="container">
		<p align="center"><img src="<%=request.getContextPath()%>/resources/images/barcode_pay_login.jpg"></p>
        <form class="form-signin" method="POST" name="f" action="<c:url value='j_spring_security_check' />">
			<c:if test="${error == true}">
                <div class="center-block">
					<p class="alert-danger">Wrong user name or password. Test code</p>                        
                </div>
            </c:if>
            <br>
        	<!-- <h2 class="form-signin-heading">Login system</h2> -->
        	<input type="text" required class="form-control" placeholder="username" name="j_username">
        	<br>
			<input type="password" required class="form-control" placeholder="password" name="j_password">
			<br>
			<button class="btn btn-lg btn-primary btn-block" type="submit">Login</button>
   			<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
	        <!-- 
	        <label class="checkbox">
	            <input type="checkbox" value="remember-me" name="_spring_security_remember_me" id="_spring_security_remember_me" checked /> Remember me
	        </label>
	         -->        
		</form>
		<br>
		<p align="center">
			<a href="<%=request.getContextPath()%>/login">Reset Login Page</a>
		</p>
	</div> <!-- /container -->        
	<br>
			Hello World
</body>
</html>